package com.dataextend.entity;


import lombok.Data;

@Data
public class UserRoleEntity {
    private Long id;
    private Long userId;
    private Long roleId;
    private UserEntity userEntity;
    private RoleEntity roleEntity;


    public Long getId() {
        return id;
    }

    public UserRoleEntity setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public UserRoleEntity setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Long getRoleId() {
        return roleId;
    }

    public UserRoleEntity setRoleId(Long roleId) {
        this.roleId = roleId;
        return this;
    }

    public UserEntity getUserEntity() {
        return userEntity;
    }

    public UserRoleEntity setUserEntity(UserEntity userEntity) {
        this.userEntity = userEntity;
        return this;
    }

    public RoleEntity getRoleEntity() {
        return roleEntity;
    }

    public UserRoleEntity setRoleEntity(RoleEntity roleEntity) {
        this.roleEntity = roleEntity;
        return this;
    }
}
